package com.studio701.carguard.mapper;

import com.studio701.carguard.pojo.HelpAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xjc
 * @since 2022-03-16
 */
public interface HelpAnswerMapper extends BaseMapper<HelpAnswer> {

    boolean updateHelpAnswerById(@Param("helpAnswer") HelpAnswer helpAnswer);

    boolean removeHelpAnswerByUserIdAndQID(Integer userId, Integer qId);

    HelpAnswer getByUserIdAndQId(Integer userId, Integer qId);

    List<HelpAnswer> getByQId(Integer qId);
}
